home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / graphics / switchf.arc / compiler.h < prev    next >
C/C++ Source or Header  |  1987-08-24  |  2KB  |  88 lines

  1.  
  2.         /***********************************************\
  3.         *                        *
  4.         *             compiler.h            *
  5.         *    Compiler dependent defines        *
  6.         *                        *
  7.         *    J.R. Bammi                *
  8.         *      decvax!cwruecmp!bammi            *
  9.         *      bammi@cwru.edu.ARPA            *
  10.         *      bammi@cwru.edu.CSNET            *
  11.         *      CIS: 71515,155            *
  12.         *                        *
  13.         \***********************************************/
  14.  
  15.     /*
  16.      * Assumptions:
  17.      *    Type 'long' == 32 bit integer
  18.      *    Type 'char' ==  8 bit integer
  19.      *
  20.      * Compiler Dependant defines:
  21.      *    Type 'WORD'  == 16 bit   signed int
  22.      *    Type 'UWORD' == 16 bit unsigned int
  23.      *    Type 'VOID'  == nothing
  24.      */
  25.  
  26. /*
  27.  * Define one of the following
  28.  */
  29. /* #define ALCYON  */
  30. /* #define MEGAMAX */
  31. /* #define LATTICE */
  32. /* #define MWC     */
  33.  
  34.  
  35. /************************** The rest 'should' be  ok **************************/
  36.  
  37.  
  38. /*
  39.  * Alcyon C
  40.  */
  41. #ifdef ALCYON
  42.  
  43. typedef int        WORD;
  44. typedef unsigned int    UWORD;
  45. #define VOID        void    /* can't typedef void in alcyon (bug) */
  46.  
  47. #endif /* ALCYON */
  48.  
  49.  
  50. /*
  51.  * Megamax C
  52.  */
  53. #ifdef MEGAMAX
  54.  
  55. typedef int        WORD;
  56. typedef unsigned     UWORD;        /* Check this */
  57. typedef int        VOID;        /* yech !!    */
  58.  
  59. #endif /* MEGAMAX */
  60.  
  61. /*
  62.  * Lattice C
  63.  *    I don't have a copy so ......
  64.  */
  65. #ifdef LATTICE
  66.  
  67. typedef short        WORD;
  68. typedef unsigned short    UWORD;    /* Is'nt lattice braindamaged like Megamax,
  69.                  * in that it defines unsigned as a type 
  70.                  * instead of a type modifier ?? if so
  71.                  * unsigned short is incorrect, and i 
  72.                  * don't know what it should be!
  73.                  */
  74. typedef void        VOID;    /* what should this be ?? */
  75.  
  76. #endif /* LATTICE */
  77.  
  78. /*
  79.  * Mark Williams C
  80.  */
  81. #ifdef MWC
  82.  
  83. typedef int        WORD;
  84. typedef unsigned int    UWORD;
  85. typedef void        VOID;
  86.  
  87. #endif    /* MWC */
  88.